#include <iostream>
using namespace std;

class A {
public:
	A (int data = 0) {
		cout << "A的构造函数" << endl;
		m_data = data;
	}
#if 0
	/*A (const A& that) {}*/
	A (const A& that) {
		cout << "A的拷贝构造函数" << endl;
		m_data = that.m_data;
	}
#endif
	void print (void){
		cout << "m_data=" << m_data << endl;
	}
private:
	int m_data;
};

int main (void)
{
	A a1(123);
	A a2(a1);
	a1.print ();
	a2.print ();
	return 0;
}




